public class Student {

    String name;
    int age;
    char gender;

    public static void main(String[] args) {
        int num = 10;
        System.out.println(num);
//        Student student = new Student();
//        Student xuesheng = new Student();
        Student stu = new Student("喜羊羊",7,'男');
//        change(student,"喜羊羊",7,'男');
        System.out.println(stu.name);
        System.out.println(stu.age);
        System.out.println(stu.gender);



    }
    static {  };

    public static void change(int num){
        num--;
    }
    public Student(){}
    public Student(String n,int a,char g){

        this.name = n;
        this.age = a;
        this.gender = g;

    }

//    public static void change(Student stu,String n,int a,char g){
//        stu.name = n;
//        stu.age = a;
//        stu.gender = g;
//    }


//    public Student(String n, int age, char gender) {
//        this.name = n;
//        this.age = age;
//        this.gender = gender;
//    }
}
